<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
</head>
<body>
<%--${pageContext.request.contextPath}获取项目的路径  localhost:8080/fileUpLoad--%>
<form action="/fileUpLoad" method="post"  enctype="multipart/form-data">
    文件名<input type="file" name="photo"/><br/>
    <input type="text" name="desc"/> <br/>
    <input type="submit" value="提交"/><br/>
</form>
<h3>童话镇.mp3  陈一发儿</h3>
<a href="${pageContext.request.contextPath}/fileDownLoad">前去下载</a>
</body>
</html>
